<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.3.0">

  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha256-Z1K5uhUaJXA7Ll0XrZ/0JhX4lAtZFpT6jkKrEDT0drU=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.1/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"example.com","root":"/","images":"/images","scheme":"Muse","darkmode":false,"version":"8.14.0","exturl":false,"sidebar":{"position":"right","display":"hide","padding":18,"offset":12},"copycode":{"enable":false,"style":null},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/js/config.js"></script>

    <meta name="description" content="引用Microsoft.Office.Interop.Excel.dll文件 添加using using Microsoft.Office.Interop.Excel; using Excel&#x3D;Microsoft.Office.Interop.Excel;">
<meta property="og:type" content="article">
<meta property="og:title" content="C#操作Excel基本常规语句">
<meta property="og:url" content="http://example.com/4ac4d4ca.html">
<meta property="og:site_name" content="Tony Liu 的博客">
<meta property="og:description" content="引用Microsoft.Office.Interop.Excel.dll文件 添加using using Microsoft.Office.Interop.Excel; using Excel&#x3D;Microsoft.Office.Interop.Excel;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2013-01-14T03:27:37.000Z">
<meta property="article:modified_time" content="2023-01-05T07:06:41.489Z">
<meta property="article:author" content="Tony Liu">
<meta property="article:tag" content="Excel">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="http://example.com/4ac4d4ca.html">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://example.com/4ac4d4ca.html","path":"4ac4d4ca.html","title":"C#操作Excel基本常规语句"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>C#操作Excel基本常规语句 | Tony Liu 的博客</title>
  






  <script async defer data-website-id="" src=""></script>

  <script defer data-domain="" src=""></script>

  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <div class="column">
      <header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">Tony Liu 的博客</p>
      <i class="logo-line"></i>
    </a>
      <p class="site-subtitle" itemprop="description">为所当为 顺其自然</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger" aria-label="搜索" role="button">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li>
  </ul>
</nav>




</header>
        
  
  <aside class="sidebar">

    <div class="sidebar-inner sidebar-overview-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Tony Liu</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">4</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">4</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>

        </div>
      </div>
    </div>

    
  </aside>


    </div>

    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://example.com/4ac4d4ca.html">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Tony Liu">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Tony Liu 的博客">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="C#操作Excel基本常规语句 | Tony Liu 的博客">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          C#操作Excel基本常规语句
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2013-01-14 11:27:37" itemprop="dateCreated datePublished" datetime="2013-01-14T11:27:37+08:00">2013-01-14</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/Excel/" itemprop="url" rel="index"><span itemprop="name">Excel</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <p>引用Microsoft.Office.Interop.Excel.dll文件</p>
<p>添加using</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">using Microsoft.Office.Interop.Excel;
using Excel&#x3D;Microsoft.Office.Interop.Excel;<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<span id="more"></span>

<p>设置程序运行语言</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">System.Globalization.CultureInfo CurrentCI &#x3D; System.Threading.Thread.CurrentThread.CurrentCulture;
System.Threading.Thread.CurrentThread.CurrentCulture &#x3D; new System.Globalization.CultureInfo(&quot;en-US&quot;);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<p>创建并使用Application</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">&#x2F;&#x2F;创建Application
Excel.Application xlApp &#x3D; new Excel.Application();
&#x2F;&#x2F;设置是否显示警告窗体
excelApp.DisplayAlerts &#x3D; false;
&#x2F;&#x2F;设置是否显示Excel
excelApp.Visible &#x3D; false;
&#x2F;&#x2F;禁止刷新屏幕
excelApp.ScreenUpdating &#x3D; false;
&#x2F;&#x2F;根据路径path打开
Excel.Workbook xlsWorkBook &#x3D; excelApp.Workbooks.Open(path, System.Type.Missing, System.Type.Missing, System.Type.Missing,
System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing,
System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing);
&#x2F;&#x2F;获取Worksheet对象
Excel.Worksheet xlsWorkSheet &#x3D; (Worksheet)xlsWorkBook.Worksheets[&quot;sales plan&quot;];<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>获取最后一行、一列的两种方法</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">&#x2F;&#x2F;获取已用的范围数据
int rowsCount &#x3D; xlsWorkSheet.UsedRange.Rows.Count;
int colsCount &#x3D; xlsWorkSheet.UsedRange.Columns.Count;

int rowsCount &#x3D; xlsWorkSheet.get_Range(&quot;A65536&quot;, &quot;A65536&quot;).get_End(Microsoft.Office.Interop.Excel.XlDirection.xlUp).Row;
int colsCount &#x3D; xlsWorkSheet.get_Range(&quot;ZZ1&quot;, &quot;ZZ1&quot;).get_End(Microsoft.Office.Interop.Excel.XlDirection.xlToLeft).Column;<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>将Excel数据存入二维数组</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">&#x2F;&#x2F;rowsCount：最大行    colsCount：最大列
Microsoft.Office.Interop.Excel.Range c1 &#x3D; (Microsoft.Office.Interop.Excel.Range)xlsWorkSheet.Cells[1, 1];
Microsoft.Office.Interop.Excel.Range c2 &#x3D; (Microsoft.Office.Interop.Excel.Range)xlsWorkSheet.Cells[rowsCount, colsCount];
Range rng &#x3D; (Microsoft.Office.Interop.Excel.Range)xlsWorkSheet.get_Range(c1, c2);
object[,] exceldata &#x3D; (object[,])rng.get_Value(Microsoft.Office.Interop.Excel.XlRangeValueDataType.xlRangeValueDefault);
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>在第一列的左边插入一列</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">Excel.Range xlsColumns &#x3D; (Excel.Range)xlsWorkSheet.Columns[1, System.Type.Missing];
xlsColumns.Insert(XlInsertShiftDirection.xlShiftToRight, Type.Missing);
&#x2F;&#x2F;xlsSheetTemplateMajor_Meisai.Cells.get_Range(xlsSheetTemplateMajor_Meisai.Cells[1, 1], xlsSheetTemplateMajor_Meisai.Cells[65535, 1]).Insert(Type.Missing, Type.Missing);
 Excel.Range rng;
            rng &#x3D; worksheet.get_Range(&quot;A:A&quot;, &quot;A:A&quot;);
            rng.Insert(Excel.XlDirection.xlToRight, Excel.XlInsertFormatOrigin.xlFormatFromLeftOrAbove);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>删除行</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">Range deleteRng &#x3D; (Range)xlsWorkSheetSapExcel.Rows[2, System.Type.Missing];
deleteRng.Delete(Excel.XlDeleteShiftDirection.xlShiftUp);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<p>删除一列数据</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">((Microsoft.Office.Interop.Excel.Range)xlWorkSheet.Cells[1, 11]).Select();
((Microsoft.Office.Interop.Excel.Range)xlWorkSheet.Cells[1, 11]).EntireColumn.Delete(0);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<p>设置背景色为红色</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">xlsWorkSheet.get_Range(&quot;A1&quot;, &quot;A1&quot;).Interior.ColorIndex &#x3D; 3;<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<p>设置Format属性 属性值可以通过在vba中录宏得到</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">Microsoft.Office.Interop.Excel.Range range1 &#x3D; xlsWorkSheetAdd.get_Range(&quot;J1&quot;, &quot;J65535&quot;);
range1.NumberFormat &#x3D; &quot;@&quot;;&#x2F;&#x2F;文本格式
range1 &#x3D; xlsWorkSheetAdd.get_Range(&quot;L1&quot;, &quot;L65535&quot;);
range1.NumberFormat &#x3D; &quot;0.00&quot;;&#x2F;&#x2F;保留两位小数<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre>

<p>替换</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">Range Drng &#x3D; xlsWorkSheetTemplate.get_Range(&quot;D1&quot;, &quot;D65535&quot;);
Drng.Replace(&quot; &quot;, &quot;&quot;, XlLookAt.xlPart, XlSearchOrder.xlByColumns, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing);
Drng.TextToColumns(Drng, Excel.XlTextParsingType.xlDelimited, Excel.XlTextQualifier.xlTextQualifierSingleQuote, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>

<p>分列处理 设置为文本</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">Range TextToColumnRng &#x3D; xlsWorkSheet.get_Range(&quot;E1&quot;, &quot;E65535&quot;);
xlsWorkSheet.get_Range(&quot;E1&quot;, &quot;E65535&quot;).TextToColumns(TextToColumnRng, Excel.XlTextParsingType.xlDelimited, Excel.XlTextQualifier.xlTextQualifierSingleQuote, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing, System.Type.Missing);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<p>设置公式</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">rng &#x3D; xlMergeFileWorkSheet.get_Range(&quot;D2&quot;, &quot;D&quot; + rowcount);&#x2F;&#x2F;设置列范围
rng.Formula &#x3D; @&quot;&#x3D;IF(RC[-3]&#x3D;&quot;&quot;H&quot;&quot;,&quot;&quot;Survivor&quot;&quot;,&quot;&quot;Donor&quot;&quot;)&quot;;&#x2F;&#x2F;设置公式   @的问题
&#x2F;&#x2F;rng.NumberFormat &#x3D; &quot;$0.00&quot;;&#x2F;&#x2F;设置格式
copyRng &#x3D; xlsSheetTemplateMajor_Meisai.get_Range(&quot;N3&quot;, &quot;N&quot; + lastRowTemplate);
copyRng.Formula &#x3D; &quot;&#x3D;VLOOKUP(RC[-12],AR残!C[-13]:C[-11],2,0)&quot;;<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>筛选</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">&#x2F;&#x2F;确定筛选范围
D1_rng &#x3D; D1_TemSheet.Cells.get_Range(D1_TemSheet.Cells[1, 1], D1_TemSheet.Cells[1, 50]);
&#x2F;&#x2F;执行筛选动作
rng.AutoFilter(5, &quot;S&quot;, Microsoft.Office.Interop.Excel.XlAutoFilterOperator.xlFilterValues, Type.Missing, true);
rng.AutoFilter(6, &quot;H&quot;, Microsoft.Office.Interop.Excel.XlAutoFilterOperator.xlOr, &quot;F&quot;, true);
D1_rng.AutoFilter(D1_Column + 2, &quot;#N&#x2F;A&quot;, Microsoft.Office.Interop.Excel.XlAutoFilterOperator.xlFilterValues,&quot;#N&#x2F;A&quot;,false);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>复制粘贴</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">D2_rng.Copy(Type.Missing);
D2_TemSheet.Cells.get_Range(D2_TemSheet.Cells[2, (D2_Column + 1)], D2_TemSheet.Cells[2, (D2_Column + 1)]).PasteSpecial(Excel.XlPasteType.xlPasteValues, Excel.XlPasteSpecialOperation.xlPasteSpecialOperationNone, false, false);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>

<p>Find查找</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">rng &#x3D; mySheet.get_Range(&quot;A1&quot;, &quot;IV10&quot;).Find(arrLabel[j], Type.Missing,
                        Microsoft.Office.Interop.Excel.XlFindLookIn.xlValues, Microsoft.Office.Interop.Excel.XlLookAt.xlWhole,
                        Microsoft.Office.Interop.Excel.XlSearchOrder.xlByRows,
                        Microsoft.Office.Interop.Excel.XlSearchDirection.xlNext, false, Type.Missing, Type.Missing);<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></code></pre>

<p>文字占满单元格</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">range.EntireColumn.AutoFit();<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<p>另存</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">xlsWorkBook.SaveAs(FileName, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>

<p>关闭对象</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">System.Runtime.InteropServices.Marshal.ReleaseComObject(xlsWorkSheet);
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlsWorkBook);
excelApp.Quit();
Kill(excelApp);&#x2F;&#x2F;调用方法关闭进程
GC.Collect();<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<p>关闭Excel进程</p>
<pre class="line-numbers language-c#" data-language="c#"><code class="language-c#">&#x2F;&#x2F;&#x2F; &lt;summary&gt;
&#x2F;&#x2F;&#x2F; 关闭Excel进程
&#x2F;&#x2F;&#x2F; &lt;&#x2F;summary&gt;
public class KeyMyExcelProcess
&#123;
 [DllImport(&quot;User32.dll&quot;, CharSet &#x3D; CharSet.Auto)]
 public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID);
 public static void Kill(Microsoft.Office.Interop.Excel.Application excel)
 &#123;
     try
     &#123;
         IntPtr t &#x3D; new IntPtr(excel.Hwnd);   &#x2F;&#x2F;得到这个句柄，具体作用是得到这块内存入口 
         int k &#x3D; 0;
         GetWindowThreadProcessId(t, out k);   &#x2F;&#x2F;得到本进程唯一标志k
         System.Diagnostics.Process p &#x3D; System.Diagnostics.Process.GetProcessById(k);   &#x2F;&#x2F;得到对进程k的引用
         p.Kill();     &#x2F;&#x2F;关闭进程k
     &#125;
     catch (System.Exception ex)
     &#123;
         throw ex;
     &#125;
 &#125;
&#125;

&#x2F;&#x2F;关闭打开的Excel方法
 public void CloseExcel(Microsoft.Office.Interop.Excel.Application ExcelApplication, Microsoft.Office.Interop.Excel.Workbook ExcelWorkbook)
&#123;
   ExcelWorkbook.Close(false, Type.Missing, Type.Missing);
   ExcelWorkbook &#x3D; null;
   ExcelApplication.Quit();
   GC.Collect();
   KeyMyExcelProcess.Kill(ExcelApplication);

&#125;<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>

<blockquote>
<p>CSDN博客地址：<a target="_blank" rel="noopener" href="https://blog.csdn.net/yanlovehan/article/details/8500217">https://blog.csdn.net/yanlovehan/article/details/8500217</a></p>
</blockquote>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Excel/" rel="tag"># Excel</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
            </div>
            <div class="post-nav-item">
                <a href="/fa1d6ed9.html" rel="next" title="C#操作Outlook基本常规语句">
                  C#操作Outlook基本常规语句 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 2012 – 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Tony Liu</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/muse/" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>
  <div class="sidebar-dimmer"></div>
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up fa-lg"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/schemes/muse.js"></script><script src="/js/next-boot.js"></script>

  




  





</body>
</html>
